package com.yzh.grainmall.order.feign;

import com.yzh.grainmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yuzhen
 * @create 2021-11-12 14:29
 */

@FeignClient("grainmall-product")
public interface ProductFeignService {

    /**
     * 根据skuId返回spu信息
     */
    @GetMapping("/product/spuinfo/skuId/{id}")
    R getSpuInfoBuSkuId(@PathVariable("id") Long id);

}
